package com.taotao.web;

import com.taotao.common.pojo.TaotaoResult;
import com.taotao.service.ItemService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * RestController
 * Created by heqianqian on 2017/7/8.
 */
@Controller
@RequestMapping("/rest/item")
public class RestItemController {


    @Resource
    private ItemService itemService;

    @ResponseBody
    @RequestMapping("/delete")
    public TaotaoResult delete(@RequestParam("ids") long[] ids) {
        return itemService.deleteItem(ids);
    }

}
